import request from '@/utils/request'

// 查询单表演示列表
export function listSingle(query) {
  return request({
    url: '/demo/single/list',
    method: 'get',
    params: query
  })
}

// 查询单表演示列表-自定义分页
export function listMultiSingle(query) {
  return request({
    url: '/demo/single/listMulti',
    method: 'get',
    params: query
  })
}

// 查询单表演示详细
export function getSingle(id) {
  return request({
    url: '/demo/single/' + id,
    method: 'get'
  })
}

// 新增单表演示
export function addSingle(data) {
  return request({
    url: '/demo/single',
    method: 'post',
    data: data
  })
}

// 修改单表演示
export function updateSingle(data) {
  return request({
    url: '/demo/single',
    method: 'put',
    data: data
  })
}

// 删除单表演示
export function delSingle(id) {
  return request({
    url: '/demo/single/' + id,
    method: 'delete'
  })
}
